import damo1.Cricle;
import damo1.Flower;
import damo1.Rect;
import damo1.Shaqe;

/**
 * @Author liangzai
 * @Description:
 */
public class Test {
    public static void func(Shaqe shaqe){
        shaqe.draw();
    }

    public static void main(String[] args) {
        Flower flower = new Flower();
        Cricle cricle = new Cricle();
        Rect rect = new Rect();

        Shaqe[] shapes = {flower,cricle,flower,rect,flower};
        for(Shaqe s:shapes){
            func(s);
        }
    }
}
